<%@ Page Language="C#" AutoEventWireup="true" CodeFile="GridViewAndHyperLinksPage.aspx.cs" Inherits="GridViewAndHyperLinksPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False">
            <Columns>
                <asp:HyperLinkField DataNavigateUrlFields="ProvinceID,Country" DataNavigateUrlFormatString="~/Details.aspx?ProvinceID={0}&amp;Country={1}"
                    DataTextField="ProvinceName" HeaderText="Name">
                    <HeaderStyle HorizontalAlign="Left" />
                </asp:HyperLinkField>
                <asp:BoundField DataField="Country" HeaderText="Ten Quoc Gia">
                    <HeaderStyle HorizontalAlign="Left" />
                </asp:BoundField>
            </Columns>
        </asp:GridView>
    
    </div>
    </form>
</body>
</html>
